.cart-popup {
  position: relative;
}

.cart-popup__wrapper {
  position: absolute;
  top: 80px;
  left: -280px;
  width: 400px;
  padding: 12px;
  padding-right: 12px;
  border-radius: 12px;
  background-color: #1C1C1C;
  transform-origin: top right;
  z-index: 2;
}

.cart-popup__close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06) !important;
  transition: background-color 0.2s ease-in-out;
  background-image: url(@/public/img/close-btn.svg);
  background-repeat: no-repeat;
  background-position: center center;
}

.cart-popup__close:hover {
  background-color: #ff8a00 !important;
  transition: background-color 0.2s ease-in-out;
}

.cart-popup__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
}

.cart-popup__up {
  padding-left: 3px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  border-bottom: #565c66 1px solid;
}

.cart-popup__cart-list {
  height: 300px;
  max-height: 300px;
  padding-right: 14px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.cart-popup__cart-list::-webkit-scrollbar {
  width: 8px;
}

.cart-popup__cart-list::-webkit-scrollbar-track {
  background-color: transparent;
}

.cart-popup__cart-list::-webkit-scrollbar-thumb {
  background-color: #ff8a00;
  border-radius: 3px;
}

.cart-popup__cart-list::-webkit-scrollbar-thumb:hover {
  background-color: #df7700;
}

.cart-popup__cart-list__empty-cart {
  width: 100%;
  height: 150px;
  margin-top: 75px;
  display: flex;
  align-items: self-end;
  padding-left: 20px;
  justify-content: center;
  background-image: url(@/public/img/empty-cart.svg);
  background-repeat: no-repeat;
  background-position: center center;
  color: #e8e9ea;
  font-size: 18px;
}

.cart-list__item {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
}

.cart-list__item__delete {
  position: absolute;
  right: 0;
  top: 0;
  height: 24px;
  width: 24px;
}

.cart-list__item__delete span::before {
  background-color: #a5a8ad;
  content: '';
  height: 100%;
  width: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: background-color 0.2s ease-in-out;
  -webkit-mask: url(/img/trash.svg) no-repeat 50% 50%;
  mask: url(/img/trash.svg) no-repeat 50% 50%;
}

.cart-list__item__delete:hover span::before {
  transition: background-color 0.2s ease-in-out;
  background-color: #ff0c0c;
}

.cart-list__item__img {
  width: 96px;
  margin-right: 13px;
  background: radial-gradient(
      52.53% 52.53% at 50% 47.47%,
      #4e5d77 0%,
      rgba(42, 50, 63, 0) 100%
    ),
    #2a323f;
}

.cart-list__item__img img {
  object-fit: contain;
}

.cart-list__item__title {
  color: #e8e9ea;
  font-size: 16px;
  transition: color 0.2s ease-in-out;
  text-decoration: none;
  width: max-content;
  display: flex;
  align-items: center;
}

.cart-list__item__title span:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 140px;
  margin-right: 3px;
}

.cart-list__item__title:hover {
  color: #ff8a00;
  transition: color 0.2s ease-in-out;
}

.cart-list__item__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-list__item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-list__item__counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 106px;
  border-radius: 16px;
  background: #333a47;
  padding: 4px 6px;
}

.cart-list__item__counter button {
  width: 24px;
  height: 24px;
  position: relative;
}

.cart-list__item__counter button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.cart-list__item__counter button::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #fff;
  transition: background-color 0.2s ease-in-out;
}

.cart-list__item__counter button:first-child:before {
  -webkit-mask: url(/img/minus.svg) no-repeat 50% 50%;
  mask: url(/img/minus.svg) no-repeat 50% 50%;
}

.cart-list__item__counter button:last-child:before {
  -webkit-mask: url(/img/plus.svg) no-repeat 50% 50%;
  mask: url(/img/plus.svg) no-repeat 50% 50%;
}

.cart-list__item__counter span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.cart-list__item__price {
  color: #e8e9ea;
  font-size: 16px;
  font-weight: 500;
}

.cart-popup__footer {
  border-top: #565c66 1px solid;
  padding-top: 12px;
}

.cart-popup__footer__inner {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 5px;
}

.cart-popup__footer__inner span:first-child {
  color: #ffffff;
  font-size: 16px;
}

.cart-popup__footer__inner span:last-child {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.cart-popup__footer__link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  background-color: #df7701;
  height: 50px;
  transition: background-color 0.2s ease-in-out;
}

.cart-popup__footer__link:hover {
  background-color: #bd6501;
  transition: background-color 0.2s ease-in-out;
}

.cart-popup__footer__link--disabled {
  pointer-events: none;
  opacity: 0.5;
}
